package com.xw.base.service.impl;

import com.xw.base.entity.basetask.OneTask;
import com.xw.base.entity.basetask.TwoTask;
import com.xw.base.service.MyTestOneService;
import com.xw.base.service.MyTestTwoService;
import lombok.extern.slf4j.Slf4j;

/**
 * @author xiongwei_vendor
 * @date 2021/11/1 10:52
 */
@Slf4j
public class MyTestTwoServiceImpl extends BaseServiceImpl implements MyTestTwoService {

    @Override
    public void myPrintTwo() {
        log.info("this is myPrintTwo");
    }

    public static void main(String[] arg0){

        MyTestOneService oneService = new MyTestOneServiceImpl();
        MyTestTwoService twoService = new MyTestTwoServiceImpl();

        OneTask oneTask = new OneTask();
        oneTask.setOne("11");
        oneTask.setTaskId("1");
        TwoTask twoTask = new TwoTask();
        twoTask.setTwo("21");
        twoTask.setTaskId("2");

        oneService.myPrintOne();
        oneService.test();
        oneService.insertTask(oneTask);

        twoService.myPrintTwo();
        twoService.test();
        twoService.insertTask(twoTask);

    }


}
